CTU Bern Presentation Theme

Inspired by the R-ladies theme and template by Bea Milz

Alan

Quarto

Quarto enables you to weave together content and executable code into a finished presentation, report, website…

This is a template for presentations

To learn more about Quarto presentations see https://quarto.org/docs/presentations/.

Code

When you click the Render button a presentation will be generated that includes both content and the output of embedded code. You can embed code like this:

1 + 1
[1] 2

This is part of the Quarto documentation. You can also add text marked as code!

New topic!

To make a slide like this, use:

## Title of slide {.center .center-x}

A more visual breakpoint

To make a slide like this, use:

## Title of slide {.center .center-x background-color="#466553"}

(This colour is from unibeCols)

Multiple Tabs on One Page - Tabsets

Content here for tabset 1

Incremental contend…

  • Eat spaghetti
  • Drink wine

You can add R code

library(ggplot2)
g <- mtcars |> 
  ggplot() +
  geom_point(aes(x = wt, y = mpg)) +
  theme_light()

(the style uses the Fira code font and particular UNIBE colours for code)

And show the results aswell :)

Including tables

tab <- mtcars |>
  head() 
knitr::kable(tab)
mpg cyl disp hp drat wt qsec vs am gear carb
Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4
Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4
Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1
Hornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1
Hornet Sportabout 18.7 8 360 175 3.15 3.440 17.02 0 0 3 2
Valiant 18.1 6 225 105 2.76 3.460 20.22 1 0 3 1
mpg cyl disp hp drat wt qsec vs am gear carb
21.0 6 160 110 3.90 2.620 16.46 0 1 4 4
21.0 6 160 110 3.90 2.875 17.02 0 1 4 4
22.8 4 108 93 3.85 2.320 18.61 1 1 4 1
21.4 6 258 110 3.08 3.215 19.44 1 0 3 1
18.7 8 360 175 3.15 3.440 17.02 0 0 3 2
18.1 6 225 105 2.76 3.460 20.22 1 0 3 1

DT::datatable()

A bit big…

DT::datatable()

With the smaller class in the slide Ex: ## slide name {.smaller}

Presentation notes

This page has some notes… (see speaker view)

Diagrams with Mermaid!

Read about how to create a diagram in this post by Mine Çetinkaya-Rundel or the mermaid site.